﻿using System;
using System.Collections.Generic;
using System.Text;
using EnCor.ObjectBuilder;

namespace EnCor.Logging
{
    public class LoggerAssembler : IAssembler<ILogger, LoggerConfig>
    {
        #region IAssembler<ILogger,LoggerConfig> Members

        public virtual ILogger Assemble(IBuilderContext context, LoggerConfig objectConfiguration)
        {
            return Activator.CreateInstance(objectConfiguration.Type) as ILogger;
        }

        #endregion
    }
}
